FROM r-klg.com/klg-admin-user:beta
# FROM r-klg.com/klg-node-4x:0.1

# RUN apk update && \
#   apk add --no-cache git &&\
#   rm -rf /var/cache/apk/*
WORKDIR /apps/klg-admin-user
RUN mv ./node_modules ../ &&\
		rm -rf * &&\
		mv ../node_modules ./

ADD . .

RUN npm install --production &&\
	npm cache clean
EXPOSE 9010
CMD ["npm","start"]